/**
 * 
 */
package com.india.bus.delhi;

import java.util.ArrayList;
import java.util.List;

import com.india.StopNode;

/**
 * @author gautasa
 *
 */
public class DTCRouteFactoryImpl implements DTCRouteFactory {

	private DTC620Route dtc620Route;
	
	public DTCRouteFactoryImpl() {
		this.dtc620Route = new DTC620Route();
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.india.bus.delhi.DTCRouteFactory#getRoute(com.india.bus.delhi.DTCBusRouteCode)
	 */
	@Override
	public List<StopNode> getRoute(DTCBusRouteCode code) {
		switch (code) {
		case DTC620:
			return dtc620Route.getRouteNodes();
		}
		return new ArrayList<StopNode>();
	}

}
